package com.lhy.wcss.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lhy.wcss.model.domain.RoleFlowSetting;
import com.lhy.wcss.mapper.RoleFlowSettingMapper;
import com.lhy.wcss.service.RoleFlowSettingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

//审核节点配置 服务实现类

@Service
public class RoleFlowSettingServiceImpl extends ServiceImpl<RoleFlowSettingMapper, RoleFlowSetting> implements RoleFlowSettingService {

    @Override
    public RoleFlowSetting getByCode(Integer currentNodeCode) {
        QueryWrapper<RoleFlowSetting> wrapper=new QueryWrapper<>();
        wrapper.lambda().eq(RoleFlowSetting::getNodeCode,currentNodeCode);
        RoleFlowSetting one = this.getOne(wrapper);
        return one;
    }
}
